import {reactive} from 'vue'

export const useBaseModel=()=>{
  const addBannerModel = reactive({
    type:'',
    bannerTitle: '',
    url: '',
    src: ''
  })
  const rules = reactive({
    bannerTitle: [
      { required: true, message: '请输入轮播图标题', trigger: 'blur' },
    ],
    url: [
      { required: true, message: '请输入轮播图标题', trigger: 'blur' },
    ],
    src: [
      { required: true, message: '请输入轮播图标题', trigger: 'blur' },
    ]
  })  

  return {
    addBannerModel,
    rules
  }
}